package Agent;

import java.util.ArrayList;

import MachineLearning.LinearRegression;
import SLA.SLA;

public class ObjectAgent {
	private String ip;
	private String agentName;
	private int port;
	private boolean on;
	private ArrayList<String> transaction;
	private SLA sla;
	private LinearRegression machine;
	
	public ObjectAgent(int port, String ip, String agentName) {
		this.setOn(true);
		this.setIp(ip);
		this.setPort(port);
		this.setAgentName(agentName);
	}
	
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getAgentName() {
		return agentName;
	}
	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}

	public boolean isOn() {
		return on;
	}

	public void setOn(boolean on) {
		this.on = on;
	}

	public ArrayList<String> getTransaction() {
		return transaction;
	}

	public void setTransaction(ArrayList<String> transaction) {
		this.transaction = transaction;
	}

	public SLA getSla() {
		return sla;
	}

	public void setSla(SLA sla) {
		this.sla = sla;
	}

	public LinearRegression getMachine() {
		return machine;
	}

	public void setMachine(LinearRegression machine) {
		this.machine = machine;
	}
	
	
}
